package com.norteksoft.erm.model;

import java.sql.Timestamp;
import org.apache.commons.lang.builder.HashCodeBuilder;

/**
 * @hibernate.class table="ERM_USERLOG"
 */
public class UserLog extends BaseObject {

	private Long ulID = new Long(-1);// OID

	private String type;// 日志类型

	private String ulDate;// 日志日期

	private Timestamp ulTime;// 日志时间

	private String subSysCode;// 子系统编号

	private String funcName;// 功能名称

	private String userName;// 用户ID：admin/jiffy

	private String userRealName;// 用户真实姓名：管理员/黄润玑

	private String content;// 日志简述

	public int hashCode() {
		return new HashCodeBuilder().append(ulID).append(type).append(ulDate)
				.append(ulTime).append(subSysCode).append(funcName).append(
						userName).append(userRealName).append(content)
				.toHashCode();
	}

	public UserLog() {
	}

	/**
	 * @hibernate.id generator-class="sequence" column="ULID" unsaved-value="-1"
	 *               type="long"
	 * @hibernate.generator-param name="sequence"
	 *                            value="ERM_SEQUENCE_FREQUENT"
	 */
	public Long getUlID() {
		return ulID;
	}

	public void setUlID(Long ulID) {
		this.ulID = ulID;
	}

	/**
	 * @hibernate.property column="ULDATE" length="255" type="string"
	 * @return String
	 */
	public String getUlDate() {
		return ulDate;
	}

	public void setUlDate(String ulDate) {
		this.ulDate = ulDate;
	}

	/**
	 * @hibernate.property column="ULTIME" type="timestamp"
	 * @return String
	 */
	public Timestamp getUlTime() {
		return ulTime;
	}

	public void setUlTime(Timestamp ulTime) {
		this.ulTime = ulTime;
	}

	/**
	 * @hibernate.property column="TYPE" length="255" type="string"
	 * @return String
	 */
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @hibernate.property column="SUBSYSCODE" length="30" type="string"
	 * @return String
	 */
	public String getSubSysCode() {
		return subSysCode;
	}

	public void setSubSysCode(String subSysCode) {
		this.subSysCode = subSysCode;
	}

	/**
	 * @hibernate.property column="CONTENT" length="1000" type="string"
	 * @return String
	 */
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @hibernate.property column="FUNCNAME" length="180" type="string"
	 * @return String
	 */
	public String getFuncName() {
		return funcName;
	}

	public void setFuncName(String funcName) {
		this.funcName = funcName;
	}

	/**
	 * @hibernate.property column="USERREALNAME" length="30" type="string"
	 * @return String
	 */
	public String getUserRealName() {
		return userRealName;
	}

	public void setUserRealName(String userRealName) {
		this.userRealName = userRealName;
	}

	/**
	 * @hibernate.property column="USERNAME" length="30" type="string"
	 * @return String
	 */
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}
